package com.xwj.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xwj
 * @date 2020/5/7
 */
@RestController
public class FlowLimitController {
    private static Logger logger = LoggerFactory.getLogger(FlowLimitController.class);
    @GetMapping("/testA")
    public String testA()
    {
        return "testA";
    }

    @GetMapping("/testB")
    public String testB() {
        logger.info(Thread.currentThread().getName()+"----testB");
        return "testB";
    }
}
